Table of Contents [Hide/Show]
Configuration Methods Visual Studio Template with Owin Clientless, Code Based Method with example. Web Configuration Transform Method FDOT.Security.STS.Client Single Page Applications/API Use .Endpoint URLsSigning outImportant Notes
public ActionResult Logout() { var authModule = FederatedAuthentication.WSFederationAuthenticationModule; var fullRequest = string.Format(StsConfig.LogoutQueryStringFormat, authModule.Issuer, authModule.Realm, authModule.Realm); authModule.SignOut(false); Response.Redirect(fullRequest); return null; }
private void Application_BeginRequest(object sender, EventArgs e) { // This corrects WIF error ID3206 "A SignInResponse message may only redirect within the current web application: '/NHP' is not allowed." // For whatever reason, accessing the site without a trailing slash causes this error. if (String.Compare(Request.Path, Request.ApplicationPath, StringComparison.InvariantCultureIgnoreCase) == 0 && !(Request.Path.EndsWith("/"))) Response.Redirect(Request.Path + "/"); }